<?php
$starttime = time();

$pete_wiki['version'] = "2.0";

// get database
$db = sqlite_open("database.sqlite");
// get config (wiki name, skin, etc)
$config = sqlite_fetch_array(sqlite_query($db,"SELECT * FROM config"));
// include main code
include("lib/utilities.php");
include("controllers/write.php");
include("controllers/flow.php");
// include page
include("skins/".$config['skin']."/wrapper.php");
// time
echo "\n<!-- this page was generated in ".(($starttime-time())/100)." seconds. -->";
?>